﻿#pragma once
#include "json_trans.h"

structJ(TaskSku,
	mapping(int, boxType);
mapping(QString, skuNo);
mapping(int, height);
mapping(int, width);
mapping(int, length);
mapping(int, weight);
prop(&boxType, &skuNo, &height, &width, &length, &weight);
);

structJ(TaskDataJ,
	mapping(QString, taskId);
mapping(QString, robNo);
mapping(QString, putNo);
mapping(QString, pickNo);
mapping(int, taskNum);
mapping(QList<TaskSku>, skuList);
prop(&taskId, &robNo, &putNo, &pickNo, &taskNum, &skuList);
);


structJ(TaskFinishInfo,
	mapping(QString, robNo);
mapping(QString, taskId);
mapping(int, finishNum);
mapping(bool, taskFinish);
mapping(QString, plateId);
prop(&robNo, &taskId, &finishNum, &taskFinish, &plateId);
);
structJ(WCSAns,
	mapping(QString, msg);
mapping(int, code);
prop(&code, &msg);
)


structJ(SkuArriveInfo,
	mapping(QString, robNo);
mapping(QString, taskId);
mapping(QString, putNo);
mapping(QString, QRInfo);
mapping(int, num);
mapping(int, msgId);
prop(&robNo, &taskId, &putNo, &QRInfo, &num, &msgId);
);
